package com.dyh.hissystem.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;
//import org.joda.time.LocalDateTime;

import java.time.LocalDateTime;


/**
 * @author Administrator
 * @data 2024/11/2
 */
@Data
@TableName("menu")
@Builder
public class Menu {
    @TableId("menu_id")
    private String menuId;
    //@TableField("menu_name")
    private String menuName;
    @TableField("url")
    private String url;
    @TableField("father_path")
    private String fatherPath;
    @TableField("active_flag")
    private String activeFlag;
    @TableField("description")
    private String description;
    @TableField("type")
    private String type;
    @TableField("creator")
    private String creator;
    @TableField("is_leaf")
    private String isLeaf;
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @TableField("last_updater")
    private String lastUpdater;
    @TableField("last_update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastUpdateTime;

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getFatherPath() {
        return fatherPath;
    }

    public void setFatherPath(String fatherPath) {
        this.fatherPath = fatherPath;
    }

    public String getActiveFlag() {
        return activeFlag;
    }

    public void setActiveFlag(String activeFlag) {
        this.activeFlag = activeFlag;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getIsLeaf() {
        return isLeaf;
    }

    public void setIsLeaf(String isLeaf) {
        this.isLeaf = isLeaf;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getLastUpdater() {
        return lastUpdater;
    }

    public void setLastUpdater(String lastUpdater) {
        this.lastUpdater = lastUpdater;
    }

    public LocalDateTime getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(LocalDateTime lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public Menu(String menuId, String menuName, String url, String fatherPath, String activeFlag, String description,
                String type, String creator, String isLeaf, LocalDateTime createTime, String lastUpdater,
                LocalDateTime lastUpdateTime) {
        this.menuId = menuId;
        this.menuName = menuName;
        this.url = url;
        this.fatherPath = fatherPath;
        this.activeFlag = activeFlag;
        this.description = description;
        this.type = type;
        this.creator = creator;
        this.isLeaf = isLeaf;
        this.createTime = createTime;
        this.lastUpdater = lastUpdater;
        this.lastUpdateTime = lastUpdateTime;
    }

    public Menu() {
    }

    @Override
    public String toString() {
        return "Menu{" +
                "menuId='" + menuId + '\'' +
                ", menuName='" + menuName + '\'' +
                ", url='" + url + '\'' +
                ", fatherPath='" + fatherPath + '\'' +
                ", activeFlag='" + activeFlag + '\'' +
                ", description='" + description + '\'' +
                ", type='" + type + '\'' +
                ", creator='" + creator + '\'' +
                ", isLeaf='" + isLeaf + '\'' +
                ", createTime=" + createTime +
                ", lastUpdater='" + lastUpdater + '\'' +
                ", lastUpdateTime='" + lastUpdateTime + '\'' +
                '}';
    }
}
